package com.deram.ctin.serv.member.api.impl;

import com.deram.ctin.serv.member.api.MemberInfoApi;
import com.deram.ctin.serv.member.entity.MemberInfo;
import com.deram.ctin.serv.member.service.MemberInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/22 9:15
 * @version: V1.0
 */
@RestController
public class MemberInfoApiImpl implements MemberInfoApi {

    @Autowired
    MemberInfoService memberInfoService;

    @Override
    public MemberInfo find(Long userId) {
        return memberInfoService.find(userId);
    }

    @Override
    public MemberInfo save(@RequestBody MemberInfo param) {
        return memberInfoService.save(param);
    }
}
